function menu()
{
	var homepageMenus = [{text:'首頁',iconCls:'menu-item'}];
	var personMenus = [
	    {text:'行事歷',iconCls:'menu-item'},
	    {text:'待辦事項',iconCls:'menu-item'},
		{text:'通訊錄',iconCls:'menu-item'},
		{text:'備忘錄',iconCls:'menu-item'},
		{text:'工作記錄',iconCls:'menu-item'}
	];
	var teamMenus = [
   	    {text:'公務交流',iconCls:'menu-item'},
   	    {text:'公告單',iconCls:'menu-item'},
   		{text:'投票',iconCls:'menu-item'},
   		{text:'資源管理',iconCls:'menu-item'}
	];
	var approvalMenus = [
   	    {text:'管理報表',iconCls:'menu-item'},
   	    {text:'待簽公文',iconCls:'menu-item'},
   		{text:'我的工作',iconCls:'menu-item'},
   		{text:'代理公文',iconCls:'menu-item'},
   		{text:'催辦通知',iconCls:'menu-item'},
   		{text:'副本通知',iconCls:'menu-item'},
   		{text:'公文分類',iconCls:'menu-item'},
   		{text:'團隊工作',iconCls:'menu-item'}
	];
	var helpMenus = [
   	    {text:'重新加載',iconCls:'menu-item'},
   	    {text:'登出系統',iconCls:'menu-item'}
	];
	new Ext.Panel({
		renderTo:'toolbarspan',
		id:'MENUMyJob',
	    tbar:['->',{
	    	id:'MYJOB-MENU-HOMEPAGE',
	    	text:'我的首頁',
	    	menu:homepageMenus,
	    	iconCls:'menu'
	    },'-',{
	    	id:'MYJOB-MENU-PERSON',
	    	text:'個人工作區',
	    	menu:personMenus,
	    	iconCls:'menu'
	    },'-',{
	    	id:'MYJOB-MENU-TEAM',
	    	text:'協同工作區',
	    	menu:teamMenus,
	    	iconCls:'menu'
	    },'-',{
	    	id:'MYJOB-MENU-APPROVAL',
	    	text:'電子簽核',
	    	menu:approvalMenus,
	    	iconCls:'menu'
	    },'-',{
	    	id:'MYJOB-MENU-HELP',
	    	text:'輔助工具',
	    	menu:helpMenus,
	    	iconCls:'menu'
	    }]
	});
	
	new Ext.Viewport({
		layout: 'border',
		items: [{
	        region: 'north',
	        html: '<h1 class="x-panel-header">Page Title</h1>',
	        autoHeight: true,
	        border: false,
	        margins: '0 0 5 0'
	    }, {
	        region: 'west',
	        collapsible: true,
	        title: '快速導航',
	        xtype: 'treepanel',
	        width: 200,
	        autoScroll: true,
	        split: true,
	        loader: new Ext.tree.TreeLoader(),
	        root: new Ext.tree.AsyncTreeNode({
	            expanded: true,
	            children: [{
	                text: '進期公告(1)',
	                iconCls:'treenode',
	                leaf: true
	            }, {
	                text: '我的工作',
	                iconCls:'treenode',
	                leaf: true
	            }, {
	                text: '待簽公文',
	                iconCls:'treenode',
	                leaf: true
	            }, {
	                text: '代理公文',
	                iconCls:'treenode',
	                leaf: true
	            }, {
	                text: '副本通知',
	                iconCls:'treenode',
	                leaf: true
	            }, {
	                text: '公務交流區',
	                iconCls:'treenode',
	                leaf: true
	            }]
	        }),
	        bbar:[{
		    	xtype:'button',
		    	text:'自定義快速導航欄',
		    	iconCls:'setting'
		    }],
	        rootVisible: false,
	        listeners: {
	            click: function(n) {
	                Ext.Msg.alert('Navigation Tree Click', 'You clicked: "' + n.attributes.text + '"');
	            }
	        }
	    }, {
	        region: 'center',
	        xtype: 'tabpanel',
	        activeTab:0,
	        items: {
	            title: '行事歷',
	            html: '行事歷'
	        }
	    }]
	});
	
}
Ext.onReady(menu);